# 输入一行字符，分别统计出其中英文字母、空格、数字和其它字符的个数

# shuru = input("请输入一个字符串")
# found = {}
# found["a"] = 0
# found["e"] = 0
# found["i"] = 0
# found["o"] = 0
# found["u"] = 0
# print(found)
# print(found.items())
# for i in shuru:
#     if i in found:
#         found[i] += 1

# for k,v in found.items():
#     print("%s is found %s times" % (k,v))

s = input("请输入一个字符串")
dic = {'letter':0,'integer':0,'space':0,'other':0}
for i in s:
    if i>='a' and i=<'z' or i>='A' and i<='Z':
        dic['letter']+=1
    elif i in "0123456789":
        dic['integer']+=1
    elif i in '':
        dic['space']+=1
    else:
        dic['other']+=1
print(dic)
print("结果显示1：")
for i in dic:
    print("%s="%i,dic[i])
print("结果显示2：")
for k,v in dic.items():
    print("%s="%k,v)

# 注释的快捷键ctrl+/

